package com.party.orders.mapper;

import org.apache.ibatis.annotations.Param;

/**
 * 
 * @author Caizhf
 * @date 2017年7月31日下午4:18:56
 * @version v.0.1
 * @email 1115054416@qq.com 
 *
 * <p>Description: 优惠券用户中间表</p>
 *
 */
public interface CouponUserMapper {

	Integer findStatusByUserIdAndCpid(@Param("userId")Integer userId, @Param("cpid")int cpid);

	Integer save(@Param("userId")Integer userId, @Param("cpid")int cpid, @Param("status")int status);

	void updateStatusByUserIdAndCpid(@Param("userId")int userId, @Param("cpid")Integer cpid,@Param("couponStatus")int couponStatus);
	
}
